package com.neusoft.my12306.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 葛彬
 * @since 2023-07-21
 */
public class Passenger implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关系id
     */
    @TableId(value = "pid", type = IdType.AUTO)
    private Integer pid;

    /**
     * 购票人
     */
    private String userid;

    /**
     * 乘车人
     */
    private String passid;

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }
    public String getPassid() {
        return passid;
    }

    public void setPassid(String passid) {
        this.passid = passid;
    }

    @Override
    public String toString() {
        return "Passenger{" +
            "pid=" + pid +
            ", userid=" + userid +
            ", passid=" + passid +
        "}";
    }
}
